package com.example.bootdemo.entity;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@ConfigurationProperties(prefix = "pet", ignoreUnknownFields = true)
@Component
@Data
@ToString
public class Pet {
    private String name;
    private Double weight;
}
